home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 45
/
Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso
/
Aminet
/
game
/
role
/
ldmud-3.2-bin.lha
/
mud
/
doc
/
efun
/
m_values
< prev
next >
Wrap
Text File
|
2001-04-06
|
689b
|
20 lines
SYNOPSIS
mixed *m_values(mapping map)
mixed *m_values(mapping map, int index)
DESCRIPTION
Returns an array with the values of mapping 'map'.
If <index> is given as a number between 0 and the width of
the mapping, the values from the given column are returned,
else the values of the first column.
EXAMPLES
mapping m = ([ "foo":1;2;3, "bar":4;5;6, "baz":7;8;9 ])
m_values(m) --> returns ({ 1, 4, 7 })
m_values(m, 0) --> returns ({ 1, 4, 7 })
m_values(m, 1) --> returns ({ 2, 8, 9 })
SEE ALSO
mappingp(E), mkmapping(E), m_indices(E), m_delete(E),
sizeof(E), widthof(E), unmkmapping(E).